package com.xyy.ec.qualification.utils;

import java.security.SecureRandom;
import java.util.Base64;

public class CodeUtils {
    public static void main(String[] args) {
        SecureRandom sc = new SecureRandom();
        byte[] bytes = new byte[12];
        sc.nextBytes(bytes);
        String encode = Base64.getEncoder().encodeToString(bytes);
        System.out.println(encode);
    }
}
